import http from "../../request.js"
// latestProducts(1,10,{})
// /lejuClient/home/latestProducts/${start}/${limit} ? id=1



// 申请退单
function addOrderReturnApply(data) {
	return http({
		url: `/lejuClient/orderReturn/addOrderReturnApply`,
		method:"POST",
		data: data
	})
}

// 获取退单公司地址
function getCompanyAddrss(data) {
	return http({
		url: "/lejuClient/orderReturn/getCompanyAddrss",
		method:"GET",
		data: data
	})
}


// 查看退单列表
function orderReturnApplys(data) {
	return http({
		url: "/lejuClient/orderReturn/orderReturnApplys",
		method:"GET",
		data: data
	})
}


// 退单图片上传
function uploadImg(data) {
	return http({
		url: "/lejuClient/orderReturn/uploadImg",
		method:"POST",
		data: data
	})
}


// 查看退单列表
function orderReturn(id,data) {
	return http({
		url:`/lejuClient/orderReturn/${id}`,
		method:"GET",
		data: data
	})
}


export {
	addOrderReturnApply,getCompanyAddrss,orderReturnApplys,uploadImg,orderReturn
}
